package jcoyote;

import java.io.Serializable;

/**
 *
 * @author Lenouvel Baptiste
 */

public class Q3Player implements Serializable {
    
    /** Identificate number in playerlist */
    private String id;
    
    /** Guid is the identity of player defined by the qkey */
    private String guid;
    
    /** Nickname of player */
    private String nick;
    
    /** IPv4 Address's player */
    private String ip;
    
    /** Network Rate */
    private String rate;
    
    /** Level of rights */
    private int level = 0;
    
    /** 
     * This first constructor is for instanciate the
     * current object with only id information caused 
     * by the ClientConnect event.
     * 
     * @param id
     **/
    
    public Q3Player(String id) {
        this.id = id;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getGuid() {
        return guid;
    }

    public String getId() {
        return id;
    }

    public String getIp() {
        return ip;
    }

    public int getLevel() {
        return level;
    }

    public String getNick() {
        return nick;
    }

    public String getRate() {
        return rate;
    }
                

}
